import socket



def get_local_ips():
    ips = []

    hostname = socket.gethostname()
    addr_info = socket.getaddrinfo(hostname, None)
    for info in addr_info:
        ip = info[4][0]
        if ip.startswith("127."):
            continue
        if ip not in ips:
            ips.append(ip)

    return ips